package spring.cloud.tasks.tasks_assign_manager.task_item_assign;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

/**
 * oldOnlineExecutorList(newOnlineExecutorList)待分配调整点
 * oldOnlineExecutorList(newOnlineExecutorList)中 enable/disable task id list,下线executor id list/上线没有拥有流量的executor id list/上线拥有流量的executor id list
 */
@Slf4j
@Setter
@Getter
public class TaskItemAssignFixPoints {
    //注意:disableTaskIdList可以先进行清理 再对offlineExecutorIdList进行均衡摘取。如果先对offlineExecutorIdList进行均衡摘，那么disableTaskIdList可能被重复分配,避免浪费时间
    private List<String> taskIdList;
    private List<String> disableTaskIdList;//优先处理[1]
    private List<String> enableTaskIdList;
    //
    private List<String> offlineExecutorIdList;//优先处理[2]
    private List<String> onlineExecutorIdList;
    private List<String> onlineDoNotOwnTrafficExecutorIdList;
    private List<String> onlineOwnTrafficExecutorIdList;
}
